<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;


Route::group([
    'prefix' => 'admin/user',
    'namespace' => 'BasicAdmin\\Modules\\User\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/', 'IndexController@index');
    $router->get('/create', 'IndexController@create');
    $router->post('/create', 'IndexController@save');
    $router->get('/{id}/edit', 'IndexController@create');
    $router->post('/{id}/edit', 'IndexController@save');
    $router->delete('/{id}', 'IndexController@delete');

});
